
class CG3Driver : public CBaseDriver, public CBaseMMU {
	private:
		ICpu* z80;
		ISoundDevice* konami;
		ISoundDevice* ym;
		UINT8 memspace[0x10000];
		CMemory* samples;
		CMemory* code;
	
	public:
		UINT8 Read8 (UINT64 offset);
		void  Write8 (UINT64 offset, UINT8 data);

	public:
		int Load(const char* fn);
		int Init(CHardware* hard);
		void FreeUnusedResources();
		void SetSubsong(int song);
		void Close();
};